package com.example.nbug.controller;

import com.example.nbug.component.ApiResponse;
import com.example.nbug.component.ErrorCode;
import com.example.nbug.component.ResultUtils;
import com.example.nbug.entity.User;
import jakarta.servlet.annotation.WebServlet;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author: 杰
 * @date: 2024/7/20 19:50
 */
@RestController
@RequestMapping("/user")
public class UserController {

    /**
     * 从禅道中获取所有用户信息
     * @return ApiResponse<List<User>>
     */
    @RequestMapping("/users")
    public ApiResponse<List<User>> getAllUsers() {
        return ResultUtils.error(new);
    }
}
